package com.homedo.microservice.open.service.gateway.manager.web.bean.po;

import com.homedo.common.dao.bean.po.base.BasePo;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 网关数据库配置表
 *
 * @author 作者 jgshun
 * @date 创建时间 2018年09月21日 13时08分00秒
 */
@Table(name = "d_db_source")
public class DbSource extends BasePo {
    /**
     * 属性查询列表
     */
    public static final String FIELD_ID = "id";
    public static final String FIELD_SERVICEGATEWAYNAME = "serviceGatewayName";
    public static final String FIELD_IP = "ip";
    public static final String FIELD_PORT = "port";
    public static final String FIELD_DBNAME = "dbName";
    public static final String FIELD_USERNAME = "username";
    public static final String FIELD_PASSWORD = "password";
    public static final String FIELD_CREATETIME = "createTime";
    public static final String FIELD_UPDATETIME = "updateTime";
    public static final String FIELD_ENV = "env";
    
    /**
     * 列名查询列表
     */
    public static final String COLUMN_ID = "id";
    public static final String COLUMN_SERVICE_GATEWAY_NAME = "service_gateway_name";
    public static final String COLUMN_IP = "ip";
    public static final String COLUMN_PORT = "port";
    public static final String COLUMN_DB_NAME = "db_name";
    public static final String COLUMN_USERNAME = "username";
    public static final String COLUMN_PASSWORD = "password";
    public static final String COLUMN_CREATE_TIME = "create_time";
    public static final String COLUMN_UPDATE_TIME = "update_time";
    public static final String COLUMN_ENV = "env";


    @Id

    @GeneratedValue(generator = "JDBC")
    @Column(name = "id")
    private java.lang.Integer id;


    @Column(name = "service_gateway_name")
    private java.lang.String serviceGatewayName;

    @Column(name = "env")
    private java.lang.String env;

    @Column(name = "ip")
    private java.lang.String ip;


    @Column(name = "port")
    private java.lang.String port;


    @Column(name = "db_name")
    private java.lang.String dbName;


    @Column(name = "username")
    private java.lang.String username;


    @Column(name = "password")
    private java.lang.String password;


    @Column(name = "create_time")
    private java.util.Date createTime;


    @Column(name = "update_time")
    private java.util.Date updateTime;

    /**
     * 获取
     *
     * @return id -
     */
    public java.lang.Integer getId() {
        return id;
    }

    /**
     * 设置
     *
     * @param id -
     */
    public void setId(java.lang.Integer id) {
        this.id = id;
    }

    /**
     * 获取
     *
     * @return serviceGatewayName -
     */
    public java.lang.String getServiceGatewayName() {
        return serviceGatewayName;
    }

    /**
     * 设置
     *
     * @param serviceGatewayName -
     */
    public void setServiceGatewayName(java.lang.String serviceGatewayName) {
        this.serviceGatewayName = serviceGatewayName;
    }

    /**
     * 获取
     *
     * @return ip -
     */
    public java.lang.String getIp() {
        return ip;
    }

    /**
     * 设置
     *
     * @param ip -
     */
    public void setIp(java.lang.String ip) {
        this.ip = ip;
    }

    /**
     * 获取
     *
     * @return port -
     */
    public java.lang.String getPort() {
        return port;
    }

    /**
     * 设置
     *
     * @param port -
     */
    public void setPort(java.lang.String port) {
        this.port = port;
    }

    /**
     * 获取
     *
     * @return dbName -
     */
    public java.lang.String getDbName() {
        return dbName;
    }

    /**
     * 设置
     *
     * @param dbName -
     */
    public void setDbName(java.lang.String dbName) {
        this.dbName = dbName;
    }

    /**
     * 获取
     *
     * @return username -
     */
    public java.lang.String getUsername() {
        return username;
    }

    /**
     * 设置
     *
     * @param username -
     */
    public void setUsername(java.lang.String username) {
        this.username = username;
    }

    /**
     * 获取
     *
     * @return password -
     */
    public java.lang.String getPassword() {
        return password;
    }

    /**
     * 设置
     *
     * @param password -
     */
    public void setPassword(java.lang.String password) {
        this.password = password;
    }

    /**
     * 获取
     *
     * @return createTime -
     */
    public java.util.Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     *
     * @param createTime -
     */
    public void setCreateTime(java.util.Date createTime) {
        this.createTime = createTime;
    }

    public String getEnv() {
        return env;
    }

    public void setEnv(String env) {
        this.env = env;
    }

    /**
     * 获取
     *
     * @return updateTime -
     */
    public java.util.Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     *
     * @param updateTime -
     */
    public void setUpdateTime(java.util.Date updateTime) {
        this.updateTime = updateTime;
    }
}